from PIL import Image, ImageFilter

img = Image.open('2.png')
blur = img.rotate(90)
blur.save('output2.png')